#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023/6/24 22:55
# @Author  : sailor233
# @File    : webDriverWait.py
# @Software: PyCharm
# @Des     :
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait


def wait_until():
    driver = webdriver.Chrome()
    driver.get("https://vip.ceshiren.com/#/ui_study")
    WebDriverWait(driver, 10).until(
        expected_conditions.element_to_be_clickable(
            (By.CSS_SELECTOR, '#success_btn')))
    driver.find_element(By.CSS_SELECTOR, "#success_btn").click()

if __name__ == '__main__':
    wait_until()